package cn.itsource.ymjs.service;

import cn.itsource.ymjs.dto.CourseDto;
import cn.itsource.ymjs.entify.FitnessCourse;
import cn.itsource.ymjs.query.BaseQuery;
import cn.itsource.ymjs.query.CourseQuery;
import cn.itsource.ymjs.result.JSONResult;
import cn.itsource.ymjs.util.AjaxResult;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IFitnessCourseService  extends IBaseService<FitnessCourse, CourseQuery>{

    FitnessCourse add(CourseDto dto);

    /**
     * 课程上线
     * @param ids
     * @return
     */
    AjaxResult online(List<Long> ids);

    /**
     * 课程下线
     * @param ids
     * @return
     */
    AjaxResult offline(List<Long> ids);
}
